Crate tor_basic_utils

source ·
Expand description

§tor-basic-utils

Utilities (low-level) for Tor

Miscellaneous utilities for tor-* and arti-*.

This crate lives at the bottom of the Tor crate stack. So it contains only utilities which have no tor-* (or arti-*) dependencies.

There is no particular theme. More substantial sets of functionality with particular themes are to be found in other tor-* crates.

License: MIT OR Apache-2.0

Modules§

  • Iterator helpers for Arti.
  • Declaration for an n-keyed set type, allowing access to each of its members by each of N different keys.
  • This module exposes helpers for working with types that implement RangeBounds.
  • An implementation of the “decorrelated jitter” algorithm for scheduling retries.
  • Code for deterministic and/or reproducible use of PRNGs in tests.

Macros§

Traits§

  • Implementation of BinaryHeap::retain that doesn’t require Nightly
  • Types that can be infallibly sampled using gen_range_infallible
  • Implementation of ErrorKind::NotADirectory that doesn’t require Nightly
  • Renaming of Path::display as display_lossy
  • Extension trait to provide .gen_range_checked()
  • Extension trait to provide .strip_suffix_ignore_ascii_case() etc.

Functions§

  • Function with the signature of Debug::fmt that just prints ".."